/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package myModel;

import java.sql.SQLException;

/**
 *
 * @author Abdullah Hamid
 */
public class userlogic {

    public String ValidateUser(String creditcardnumber, String pin) throws ClassNotFoundException, SQLException
    {
        String cn=creditcardnumber;
        String p=pin;

    
        userdao userdaoobj= new userdao();
        String usertype=userdaoobj.ValidateUser(cn, p);
       return usertype;
    }

}
